home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1997 #1 / Amiga Plus CD - 1997 - No. 01.iso / pd / hardware / parallelporttester / parallelportctrl&tst.doc < prev    next >
Text File  |  1995-10-08  |  4KB  |  106 lines

  1.  
  2. Parallelport testing hard- and software                   - © Ber 1996
  3. ========================================
  4.  
  5.  
  6. This archive contents a description to built a parallelport test
  7. adaptor and two programmes to control the bits at this port.
  8. (Only amiga internal parallelport.)
  9.  
  10. The hardware checks the lines and indicates a dataflow over the
  11. port.
  12. (All parallelports e.g. of I/O-cards or other [non-amiga] pc's.)
  13.  
  14. With one programme you are able to set and clear all databits
  15. and the signals Bsy, POut and Sel additional (testing the port).
  16.  
  17. The other programme is only to set and clear the databits.
  18. This is usefull to control a connected relay-card.
  19.  
  20. In both programmes you can switch the power-led high and low
  21. (this switches also the audio filter in most amiga models).
  22.  
  23.  
  24.  
  25. Hardware
  26. --------
  27.  
  28. - Porttesthardware (ParPortHardware.iff, 13822 bytes):
  29.   I put the circuit into a little case. There is one cable
  30.   to the amiga port and a socket for the desired equipment
  31.   (e.g. a printer). For that the port should be passed through.
  32.   Use the ParallelPortTest programme to check the port.
  33.  
  34.   Also now you can see the dataflow to you periphery in operation.
  35.  
  36.   The +5 Volt come from the joystickport. It is possible to get
  37.   the + 5 V from the parallelport itself (Pin 14), but there is a
  38.   resistor (47 Ohm) in the line and that is too much. I soldered
  39.   a fuse with 250 mA parallel to the resistor and now I have full
  40.   5 V at the parallelport.
  41.   For use with other computersystems you have to connect a socket
  42.   for external power supply to the circuit.
  43.   Don't forget some condensors for the circuit. Connect unused
  44.   inputs of TTL to +5 V, don't connect unused ouputs.
  45.   For the LED's I used low power types of 5 mm. Then the resistors
  46.   should have 330 to 470 Ohm depending on the colour of the LED's.
  47.  
  48.  
  49. Software
  50. --------
  51.  
  52. - ParallelPortControl V1.4, 34884 bytes:
  53.   Controls each bit of the parallelport with the keys <1> to <8>.
  54.   Key <9> switches the amiga power-led bright and dark.
  55.   This switches also the audio filter of your amiga on and off
  56.   (not all models).
  57.  
  58.   All states are also preserved after terminating the programme.
  59.  
  60.   Now it is possible to cook the coffee with the amiga by using
  61.   a relay-card and a coffee machine. Only amiga made it possible.
  62.  
  63.  
  64. - ParallelPortTest V1.4, 37184 bytes:
  65.   This programme is for the port test hardware.
  66.  
  67.   It controls each bit of the parallelport with the keys
  68.   <1> to <8>. Key <9> switches the amiga power-led bright
  69.   and dark. This switches also the audio filter of your
  70.   amiga on and off (not all models).
  71.   Additional controls of the signals Bsy, POut and Sel.
  72.  
  73.   Key <0> switches all databits, Bsy, POut and Sel at the same time.
  74.  
  75.   When terminating the programme, all bits are cleared (set to zero),
  76.   exept the state of the power-led (audio filter) isn't changed.
  77.  
  78.  
  79. The programmes were made using A68k and Blink.
  80.  
  81. Seems to work with Kick V1.3, OS 2.04, OS 3.1 and 68010, 68020, 68030.
  82.  
  83. It's a hardware hack because the port bits are changed by writing
  84. direct to the coresponding registers.
  85.  
  86. Some adresses are mirrowed in the system, so I don't know the
  87. original adress of the bit.
  88. In ParallelPortControl and ParallelPortTest I use different
  89. adresses, but both programmes seems to work without differences.
  90.  
  91. Is there someone who knows the registeradresses to control the
  92. signals \DRdy and \Ack?
  93.  
  94. \Res is controled by pressing the keys <ctrl> <lA> <rA>
  95. (the \Res signal is connected to the amiga reset line. So it's
  96. absurd to take that function into programm).
  97.  
  98.  
  99. Bugs:
  100. Programmes screen output is corrupt if you use proportional fonts.
  101. (Fonts with fixed width are no problem. The programmes adapt to the
  102. size of the font automaticaly.)
  103.  
  104.  
  105. - Ber
  106.